package com.KA.entity;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;


/*
  账单表
 */
@Data
public class Account implements Serializable {

    private static final long serialVersionUID = 1L;
    //账单id
    private Long id;
    //所属用户id
    private String userId;
    //记账类型图片
    private String images;
    // 1 支出，2 收入
    private Integer getorpay;
    //记账类型
    private String accountType;
    //账单金额
    private BigDecimal price;
    //记账备注信息
    private String massge;
    //创建时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    //更新时间
    private LocalDateTime updateTime;


}
